﻿using Domain.Base;
using DtoFw.Enum;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Domain.Entity.Aprove
{
    /// <summary>
    /// 出入库审批
    /// </summary>
    [SugarTable("case_physical_approve")]
    [DB(EnumDatabase.Mysql, Cache = false)]
    public class CasePhysicalApproveEntity : BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        public String Sn { get; set; }
        /// <summary>
        /// 主键
        /// </summary>
        public long CaseId { get; set; }
        /// <summary>
        /// 接收单位id
        /// </summary>
        public long TargetId { get; set; }
        /// <summary>
        /// 接收单位名称
        /// </summary>
        public string TargetDept { get; set; }
        /// <summary>
        /// 接收人
        /// </summary>
        public long TargetPersonId { get; set; }
        /// <summary>
        /// 接收人姓名
        /// </summary>
        public string TargetPerson { get; set; }
        /// <summary>
        /// 联系方式
        /// </summary>
        public string TargetMobile { get; set; }
        /// <summary>
        /// 当前审核次序
        /// </summary>
        public int ExamSeq { get; set; }
        /// <summary>
        /// 当前审核人id
        /// </summary>
        public string ExamId { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string ExamPerson { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? ExamTime { get; set; }
        /// <summary>
        /// 出入库原因
        /// </summary>
        public string Reason { get; set; }
        /// <summary>
        /// 类型：出库、入库
        /// </summary>
        public string Ty { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 状态
        /// 0：待审核
        /// 1：审核中
        /// 2：审核通过
        /// 3：审核不通过
        /// 9：已撤销
        /// </summary>
        public int State { get; set; }


        #region 查询字段
        /// <summary>
        /// 案件号
        /// </summary>
        [SqlSugar.SugarColumn(IsIgnore = true)]
        public string CaseNo { get; set; }
        /// <summary>
        /// 堪验号
        /// </summary>
        [SqlSugar.SugarColumn(IsIgnore = true)]

        public string InspectionNo { get; set; }
        /// <summary>
        /// 案件名称
        /// </summary>
        [SqlSugar.SugarColumn(IsIgnore = true)]

        public string CaseName { get; set; }
        /// <summary>
        /// 案发时间
        /// </summary>
        [SqlSugar.SugarColumn(IsIgnore = true)]

        public DateTime? CaseTime { get; set; }
        /// <summary>
        /// 是否可以撤销
        /// </summary>
        [SqlSugar.SugarColumn(IsIgnore = true)]

        public bool IsAllowCancel { get; set; }
        #endregion 查询字段


    }
}
